#!/bin/sh

port="$1"
shift 1

local="${local:-$port}"

echo ssh -L  $local:localhost:$port  "$@"
exec ssh -L "$local:localhost:$port" "$@"

